From f52d7ff283fb97c43162b9e33eb1638b1d4679c9 Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Sat, 17 Jan 2009 13:33:49 +0000 Subject: [PATCH] Instead of having BABL_CLASS() plus variants and making the macros expand to different things depending on if they are used in a header or a .c file, have two versions: BABL_CLASS_DECLARE() and BABL_CLASS_IMPLEMENT(). This enables further refactorisations of the babl.h header. * babl.h: Do the name changes and remove the unpleasant #undefs at the bottom. * babl-internal.h: Do the name changes. * babl-component.[ch] * babl-conversion.[ch] * babl-extension.[ch] * babl-fish.[ch] * babl-format.[ch] * babl-image.h * babl-model.[ch] * babl-sampling.h * babl-type.[ch]: Adjust to changes. svn path=/trunk/; revision=370 --- ChangeLog | 23 +++++++++++++++++++++++ babl/babl-component.c | 2 +- babl/babl-component.h | 2 +- babl/babl-conversion.c | 2 +- babl/babl-conversion.h | 2 +- babl/babl-extension.c | 2 +- babl/babl-extension.h | 2 +- babl/babl-fish.c | 2 +- babl/babl-fish.h | 2 +- babl/babl-format.c | 2 +- babl/babl-format.h | 2 +- babl/babl-image.h | 2 +- babl/babl-internal.h | 6 +++--- babl/babl-model.c | 2 +- babl/babl-model.h | 2 +- babl/babl-sampling.h | 2 +- babl/babl-type.c | 2 +- babl/babl-type.h | 2 +- babl/babl.h | 9 +++------ 19 files changed, 45 insertions(+), 25 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0b71f24..13d44a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,26 @@ +2009-01-17 Martin Nordholts + + Instead of having BABL_CLASS() plus variants and making the macros + expand to different things depending on if they are used in a + header or a .c file, have two versions: BABL_CLASS_DECLARE() and + BABL_CLASS_IMPLEMENT(). This enables further refactorisation of + the babl.h header. + + * babl.h: Do the name changes and remove the unpleasant #undefs at + the bottom. + + * babl-internal.h: Do the name changes. + + * babl-component.[ch] + * babl-conversion.[ch] + * babl-extension.[ch] + * babl-fish.[ch] + * babl-format.[ch] + * babl-image.h + * babl-model.[ch] + * babl-sampling.h + * babl-type.[ch]: Adjust to changes. + 2009-01-17 Martin Nordholts Don't redeclare functions declared with the BABL_CLASS() or diff --git a/babl/babl-component.c b/babl/babl-component.c index 4c84bba..45a9b0a 100644 --- a/babl/babl-component.c +++ b/babl/babl-component.c @@ -127,4 +127,4 @@ babl_component_new (void *first_arg, return babl; } -BABL_CLASS (component) +BABL_CLASS_IMPLEMENT (component) diff --git a/babl/babl-component.h b/babl/babl-component.h index 6cfae07..98dadc5 100644 --- a/babl/babl-component.h +++ b/babl/babl-component.h @@ -23,7 +23,7 @@ /****************************************************************/ /* BablComponent */ -BABL_NAMED_CLASS (component); +BABL_NAMED_CLASS_DECLARE (component); /* * Babl * babl_component_new (const char *name, * NULL); diff --git a/babl/babl-conversion.c b/babl/babl-conversion.c index 7c028b5..173cdf3 100644 --- a/babl/babl-conversion.c +++ b/babl/babl-conversion.c @@ -555,4 +555,4 @@ babl_conversion_error (BablConversion *conversion) return error; } -BABL_CLASS (conversion) +BABL_CLASS_IMPLEMENT (conversion) diff --git a/babl/babl-conversion.h b/babl/babl-conversion.h index d5d609f..8b0ca8a 100644 --- a/babl/babl-conversion.h +++ b/babl/babl-conversion.h @@ -22,7 +22,7 @@ /****************************************************************/ /* BablConversion */ -BABL_NAMED_CLASS (conversion); +BABL_NAMED_CLASS_DECLARE (conversion); /* * Babl * babl_conversion_new (